﻿cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
cmake_policy(VERSION 2.8)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
set(NAME vulkanExamples)


set(CMAKE_CXX_STANDARD 17)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/")
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_EXE_LINKER_FLAGS /NODEFAULTLIB:"MSVCRT.lib")

project(${NAME})

find_package(GLFW3 REQUIRED)
find_package(ASSIMP REQUIRED)
find_package(GLM REQUIRED)
find_package(VULKAN REQUIRED)

include_directories(base)
include_directories(external)
include_directories(${ASSIMP_INCLUDE_DIR})
include_directories(${GLFW3_INCLUDE_DIR})
include_directories(${GLM_INCLUDE_DIR})
include_directories(${VULKAN_INCLUDE_DIR})

add_definitions(-DDATA_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}/data/\")


link_libraries(${VULKAN_LIBRARY} ${ASSIMP_LIBRARIES} ${GLFW3_LIBRARY})

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/")

add_subdirectory(base)
add_subdirectory(examples)